package cn.tedu.springproxydemo.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class DemoAspect {
    Logger logger = LoggerFactory.getLogger(DemoAspect.class);
    @Before("bean(demoBean)")
    public void demo(){
        logger.debug("DemoAspect demo()");
    }
}
